package com.hxzy.mapper;

import com.hxzy.controller.admin.employee.req.EmployeeSearchReq;
import com.hxzy.controller.admin.employee.resp.EmployeeResp;
import com.hxzy.entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【employee(后台管理员表)】的数据库操作Mapper
* @createDate 2024-02-21 11:30:41
* @Entity com.hxzy.entity.Employee
*/
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 根据用户名查询 信息
     * @param loginName
     * @return
     */
    Employee searchByLoginName(String loginName);

    /**
     * 条件查询
     * @param req
     * @return
     */
    List<EmployeeResp> search(@Param(value = "req") EmployeeSearchReq req);

    /**
     * 根据选中主键查询数据
     * @param ids
     * @return
     */
    List<EmployeeResp> exportExcel(@Param(value = "ids") Long[] ids);
}




